#include <iostream>
#include <string>
using namespace std;

std::string ptint32(int val) {
  std::string res;
  for (int i = 0; i < 32; ++i) {
    int a = (val & (1 << (31 - i)));
    if(a){
	res.push_back('1');
    }else{
	res.push_back('0');
    }
  }
  return res;
}

int main() { cout << ptint32(-2).data() << endl; }
